package com.zhanghe.study.springcloudalibaba.service;

import com.zhanghe.study.springcloudalibaba.dao.StorageDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zh
 * @date 2021/9/15 16:06
 */
@Service
public class StorageService {

    @Autowired
    private StorageDao storageDao;

    public void decrease(int productId, int count){
        System.out.println("减库存开始");
        storageDao.decrease(productId, count);
        System.out.println("减库存结束");

    }
}
